import request from '@/router/axios'

export function fetchChildrenBmiList(query) {
  return request({
    url: '/pvm/childrenbmi/page',
    method: 'get',
    params: query
  })
}

export function addChildrenBmiObj(obj) {
  return request({
    url: '/pvm/childrenbmi',
    method: 'post',
    data: obj
  })
}

export function getChildrenBmiObj(id) {
  return request({
    url: '/pvm/childrenbmi/' + id,
    method: 'get'
  })
}

export function delChildrenBmiObj(id) {
  return request({
    url: '/pvm/childrenbmi/' + id,
    method: 'delete'
  })
}

export function putChildrenBmiObj(obj) {
  return request({
    url: '/pvm/childrenbmi',
    method: 'put',
    data: obj
  })
}
